package leetcode.hard.maxSlidingWindow;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import util.AssertUtils;
import util.SolutionValidator;

public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        SolutionValidator.checkSolved(Solution.class);
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        int[] nums = new int[]{1,3,-1,-3,5,3,6,7};
        int k = 3;
        AssertUtils.assertArrayEquals(new int [] {3,3,5,5,6,7}, solution.maxSlidingWindow(nums, k));
    }
}
